#pragma once
#include<iostream>
#include <graphics.h>
#include "animation.h"

#define VK_W 0x57
#define VK_S 0x53
#define VK_A 0x41
#define VK_D 0x44


const int SCREEN_HEIGHT = 720;
const int SCREEN_WIDTH = 1280;

enum class PlayerType {
		PAIMON = 0,
		WARRIOR
	};

using namespace std;
class Player {
public:

	

	Player(PlayerType type);
	~Player();
	void ProcessEvent(const ExMessage& msg);
	void Move();
	void Draw(int delta);
	//inline void putimage_alpha(int x, int y, IMAGE* img);
	POINT GetPos() const;
private:
	POINT pos = {600, 300};
	int speed = 5;
	int FRAME_HEIGHT = 80;
	int FRAME_WIDTH = 80;
	int SHADOW_WIDTH = 32;

	Animation* left_animation = 0;
	Animation* right_animation = 0;
	IMAGE img_shadow;
	bool is_up = false;
	bool is_down = false;
	bool is_right = false;
	bool is_left = false;
	PlayerType type = PlayerType::PAIMON;
};